package NO1.src.Demo;

import javax.xml.crypto.Data;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.logging.SimpleFormatter;

public class date {
    public static void main(String[] args) throws Exception{
        Date date=new Date();
        long now=date.getTime();
        System.out.println(now);
        now+=60*60*24;
        System.out.println( new Date(now));
        System.out.println(date);
        LocalDateTime time =LocalDateTime.now();
        System.out.println(time);

    }
}
